#ifndef UML_H
#define UML_H

#include <QtGui/QMainWindow>
#include <QTextCodec>
#include <QDateTime>
#include "ui_uml.h"
#include <windows.h>
#include <gdiplus.h>
#pragma comment(lib,"GdiPlus.lib")
using namespace Gdiplus;

class umlScene;

class uml : public QMainWindow, public Ui::umlClass
{
	Q_OBJECT
public:
	uml(QWidget *parent = 0, Qt::WFlags flags = 0);
private:
	Ui::umlClass ui;
	umlScene * scene;
	void createToolBar();
	int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);
	void SaveBitmap(HBITMAP hBitmap);

private slots:
	void createComponent();
	void createClass();
	void createLink();
	void createScreen();
	void createComment();
	void tArrow();
	void tFileOpen();
	void tSave();
};

#endif // UML_H
